package admin

import database "hft/Database"

type Meta struct {
	database.Base
	Icon        string `json:"icon,omitempty" gorm:"not null"`
	Title       string `json:"title,omitempty" gorm:"not null"`
	IsFull      bool   `json:"isFull,omitempty" gorm:"not null"`
	IsHide      bool   `json:"isHide,omitempty" gorm:"not null"`
	IsAffix     bool   `json:"isAffix,omitempty" gorm:"not null"`
	IsKeepAlive bool   `json:"isKeepAlive,omitempty" gorm:"not null"`
	IsLink      string `json:"isLink,omitempty" gorm:"not null;type:text"`
	RouteId     uint   `json:"routeId,omitempty"`
}

func (Meta) TableName() string {
	return database.TableNameFormat("metas")
}
